package net.starwifi.duobao.web;

import net.starwifi.duobao.entity.Member;
import net.starwifi.duobao.mvc.BaseController;
import net.starwifi.duobao.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2015/11/12.
 */
@Controller("infoController")
@RequestMapping("/bCenter/info")
public class InfoController extends BaseController {


    @Autowired
    private MemberService memberService;


    /**
     * 信息填写页面
     */
    @RequestMapping(value = "/edit", method = RequestMethod.GET)
    public  String productAdd(HttpServletRequest request,Model model) {
        Member member=memberService.getCurrent();
        model.addAttribute("entity",member);
        return "bcenter/info-edit";
    }




}
